/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TIPOSSERVICOS")
public class TiposServicosProteu implements Serializable{

    @Id
    @Column(name="TSERV_IN_CODIGO")
    private Integer tservInCodigo;
    @Column(name="TSERV_ST_CODIGO")
    private String tservStCodigo;
    @Column(name="TSERV_ST_DESCRICAO")
    private String tservStDescricao;
    @Column(name="TSERV_IN_ORDEM")
    private Integer tservInOrdem;
    @Column(name="USU_IN_CODIGO")
    private Integer usuInCodigo;
    @Column(name="TSERV_DT_ALTERACAO")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date tservDtAlteracao;


    public Date getTservDtAlteracao() {
        return tservDtAlteracao;
    }

    public void setTservDtAlteracao(Date tservDtAlteracao) {
        this.tservDtAlteracao = tservDtAlteracao;
    }

    public Integer getTservInCodigo() {
        return tservInCodigo;
    }

    public void setTservInCodigo(Integer tservInCodigo) {
        this.tservInCodigo = tservInCodigo;
    }

    public Integer getTservInOrdem() {
        return tservInOrdem;
    }

    public void setTservInOrdem(Integer tservInOrdem) {
        this.tservInOrdem = tservInOrdem;
    }

    public String getTservStCodigo() {
        return tservStCodigo;
    }

    public void setTservStCodigo(String tservStCodigo) {
        this.tservStCodigo = tservStCodigo;
    }

    public String getTservStDescricao() {
        return tservStDescricao;
    }

    public void setTservStDescricao(String tservStDescricao) {
        this.tservStDescricao = tservStDescricao;
    }

    public Integer getUsuInCodigo() {
        return usuInCodigo;
    }

    public void setUsuInCodigo(Integer usuInCodigo) {
        this.usuInCodigo = usuInCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TiposServicosProteu other = (TiposServicosProteu) obj;
        if (this.tservInCodigo != other.tservInCodigo && (this.tservInCodigo == null || !this.tservInCodigo.equals(other.tservInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + (this.tservInCodigo != null ? this.tservInCodigo.hashCode() : 0);
        return hash;
    }



}
